/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Smpales;

import java.awt.BorderLayout;
import java.awt.Frame;
import java.awt.Label;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;

/**
 *
 * @author Jakim
 */

class SimpleWindow extends Frame {

    public SimpleWindow(){
        super();
        Label lbl = new Label("This is mere sampe!");
        this.setSize(100, 100);
        this.add(lbl, BorderLayout.NORTH);

         this.addWindowListener(new WindowAdapter() {

            @Override
            public void windowClosing(WindowEvent e) {
                e.getWindow().setVisible(false);
            }
        });
    }
}
